package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author zhangxingchuan
 * @date 2023/6/8 13:15
 */
@Data
@TableName("goods")
public class Goods implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String goodsName;

    private String subject;

    private BigDecimal price;

    private Integer stock;
}
